﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage2.master"
    AutoEventWireup="true" CodeBehind="HospitalUser.aspx.cs" Inherits="HZ.Supervise.Web.Admin.HospitalUser" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<%@ Register Src="~/Common/AreaControlsDL.ascx" TagName="AreaControlDL" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <%--<div id="tabnav">
		<ul>
			<li class="active"><a href="javascript:void(0);">医疗机构基础表</a></li>
		</ul>
	</div>--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <th>
                    <asp:Label ID="lblUserId" runat="server" Text="用户ID：" /></th>
                <td>
                    <asp:TextBox ID="txtUserId" runat="server"></asp:TextBox>
                </td>
                <th>
                    <asp:Label ID="lblUserName" runat="server" Text="用户名称："></asp:Label></th>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
                <th>
                    <asp:Label ID="lblRoleName" runat="server" Text="是否启用："></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddlIsUsing" runat="server">
                        <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:DropDownList>
                </td>

            </tr>
            <tr>
                <th>是否主用户：</th>
                <td>
                    <asp:DropDownList ID="ddlAdmin" runat="server">
                        <asp:ListItem Text="全部" Selected="True" Value=""></asp:ListItem>
                        <asp:ListItem Text="是" Value="1"></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <th>医院等级：</th>
                <td>
                    <asp:DropDownList ID="dplLevel" runat="server">
                        <asp:ListItem Text="全部" Value="" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="一甲" Value="一甲"></asp:ListItem>
                        <asp:ListItem Text="一乙" Value="一乙"></asp:ListItem>
                        <asp:ListItem Text="一丙" Value="一丙"></asp:ListItem>
                        <asp:ListItem Text="二甲" Value="二甲"></asp:ListItem>
                        <asp:ListItem Text="二乙" Value="二乙"></asp:ListItem>
                        <asp:ListItem Text="二丙" Value="二丙"></asp:ListItem>
                        <asp:ListItem Text="三甲" Value="三甲"></asp:ListItem>
                        <asp:ListItem Text="三乙" Value="三乙"></asp:ListItem>
                        <asp:ListItem Text="三丙" Value="三丙"></asp:ListItem>
                        <asp:ListItem Text="其它" Value="其它"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <th>行政属地：</th>
                <td class="area">
                    <uc3:AreaControl ID="ddlArea" runat="server" />
                </td>

            </tr>
            <tr>
<%--                <th>地理属地：</th>
                <td class="area">
                    <uc4:AreaControlDL ID="ddlAreaDL" runat="server" />
                </td>--%>
                <th></th>
                <td>
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" CssClass="btn"
                        OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div class="page">
        <hz:HzButton ID="btnBatResetPws" runat="server" OnClientClick=" if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvw','请至少选定一个用户！')) {return confirm('确实要初始化选定用户密码？');}return false;"
            Text="初始化密码" CssClass="btn" ToolTip="用户密码将被初始化"
            OnClick="btnBatResetPws_Click" />
        <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
    </div>
    <asp:GridView ID="gvw" class="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="UserID" EmptyDataText="暂无符合要求的数据！">
        <Columns>
            <asp:BoundField DataField="FatherAreaName" HeaderText="行政市州" ReadOnly="True" />
            <asp:BoundField DataField="AreaName" HeaderText="行政区县" ReadOnly="True" />
            <asp:BoundField DataField="UserID" HeaderText="用户ID" ReadOnly="true" />
            <asp:BoundField DataField="UserName" HeaderText="用户名称" ReadOnly="true" />
            <asp:BoundField DataField="Levels1" HeaderText="等级" />
            <asp:BoundField DataField="IsUsing" HeaderText="是否启用" />
            <asp:BoundField DataField="IsAdmin" HeaderText="是否主用户" />
            <asp:TemplateField HeaderText="">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this, 'ctl00_ContentPlaceHolder1_gvw', 'addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkUser" id="chkUser" value='<%#Eval("UserID")%>'
                        onclick="chkChecked(this, 'ctl00_ContentPlaceHolder1_gvw', 'addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
   <%-- <div class="PageChanged">
        <div class="PageChangedCon">
            <webdiyer:AspNetPager ID="AspNetPager2" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"
                AlwaysShow="true">
            </webdiyer:AspNetPager>
        </div>
    </div>--%>
    <div class="PageChanged">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
	
</asp:Content>
